<template>
  <div>
    <v-form :status="status" ref="form"></v-form>
    <v-list :list="list" @willUpdate="willUpdate"></v-list>
  </div>
</template>
<script>
import  vForm  from "./components/form.vue";
import  vList  from "./components/list.vue";
import {reqmemberlist} from "../../http/api";
export default {
  components: {
    vForm,
    vList
  },
  props: [],
  data(){
    return {
      list:[],
      status:{
        isshow:false
      }
    };
  },
  methods: {
    init(){
      reqmemberlist().then(res=>{
        if(res.data.code==200){
          this.list=res.data.list
        }
      })
    },
    willUpdate(uid){
      this.status={
        isshow:true
      }
      this.$refs.form.getOne(uid)
    }
  },
  mounted(){
    this.init()
  },
  computed: {},
  watch: {}
};
</script>
<style scoped lang="less">
@import "../../less/index.less";
</style>